@import 'variable';
@import 'base';
@import 'common';

.cart-layout {
    position: relative;
    height: 1000px;
    padding-top: 0;
    background-color: #fff;
}
/*头部*/ 
.cart-header {
    position: relative;
    background-color: #fff;  
    border-bottom: 1px solid #e1e1e1;
    left: 0;
    top:0;
    .title {
        overflow: hidden;
        text-align: center;
        line-height: 44px;
        font-size: 20px;
        font-weight: normal;
        color: #333;
    }
    .back {
        background: url('../images/back.png') no-repeat center center;
        background-size: 20px 20px;
    }

    .menu {
        background: url('../images/more.png') no-repeat center center;
        background-size: 20px ;
    }
}
/*安全*/

.cart-address {
    height: 45px;
    border-bottom: 1px solid #e1e1e1;
    text-align: center;
    line-height: 45px;
    color:#000;
    padding: 0 10px;
    font-size: 14px;
    .address {
        padding-left: 10px;
        color: #999;
        width: 140px;
    }
    .fished {
        color: @mainColor;
    }
}

/*商品模块*/ 

.cart-product {
    border-top: 1px solid #e1e1e1;
    margin-top: 10px;

    .chk {
        position: absolute;
        left: 7px;
        top: 7px;
        width: 20px;
        height: 20px;
        background-color: red;
        background: url('../images/jd-sprites.png') no-repeat -180px -89px;
        background-size: 200px 200px;

    }
    .product-title {
        position: relative;
        height: 34px;
        border-bottom: 1px solid #e1e1e1;
        line-height: 34px;
        padding-left: 34px;
        font-size: 12px;

        .logo {
            width: 20px;
            height: 15px;
            background: url('../images/jd-sprites.png') no-repeat 0 0;
            background-size: 200px 200px;
            margin-top: 9px;
            margin-right: 10px;
        }
        .text {
            font-size: 16px;
            font-weight: 700;
        }
        .right {
            color: #ccc;
            margin-top: 12px;
            margin-left: 5px;
        }
    }
    .product-content {
        .item {
            position: relative;
            height: 100px;
            border-bottom: 1px solid #e1e1e1;
            padding-left: 34px;
            .chk {
                top: 40px;
            }
            .info {
                height: 100px;               
                padding: 10px;
                color: #333;
                img {
                    width: 80px;
                    height: 80px;
                    float: left;
                }
                .info-right {
                    height: 100%;       
                    overflow: hidden;
                    padding-left: 10px;
                    .text {
                        line-height: 18px;
                        height: 36px;
                        overflow: hidden;
                        margin-bottom: 10px;
                    }
                    .option {
                        .num {
                            span {
                                color: #999;
                                font-size: 24px;
                                float: left;
                                width: 30px;
                                height: 30px;
                                background-color: #f1f1f1;
                                text-align: center;
                                line-height: 30px;
                                cursor: pointer;
                            }
                            span:nth-child(2) {
                                border-left:none;
                                border-right: none;
                                font-size: 16px;
                                width: 40px;
                            }
                        }
                        .price {
                            color: @mainColor;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}

/*底部*/
.cart-footer {
    position: fixed;   
    bottom: 0;
    width: 100%;
    max-width: 640px;
    height: 50px;
    border-top: 1px solid #eee;
    background-color: #fff;
    display: flex;
    text-align: center;
    line-height: 50px;
    font-size: 16px;
   
    .chk-all {
        flex: 1;
        span {
            font-size: 14px;
            float: left;
            width: 50px;
            height: 20px;
            padding-top: 30px;
            line-height: 20px;
            color: #aaa;
            background: url('../images/circle.png') no-repeat center 8px;
            background-size: 20px ;
        }
    }
    .total {
        padding-top: 8px;
        line-height: 1.2em;
        text-align: right;
        padding-right: 10px;
        small {
            color: #ccc;
        }
        .money {
            color:@mainColor;
            font-weight: 700;
        }
    }
    .delete {
        width: 110px;
        background-color: #ccc;
        color:#fff;
    }
} 

/* 模态框*/
.win-box {
    display: none;
    position: fixed;
    left: 0;
    top: 0; 
    width: 100%;
    height: 100%;
    background-color:rgba(0, 0, 0, .2);
    .del-box {
        width: 80%;
        // height: 200px;
        margin: 200px auto;
        border-radius: 10px;
        padding: 10px;
        background-color: #fff;
        text-align: center;
        p {
            font-size: 22px;
            color:#333;
            line-height: 60px;
            border-bottom: 1px solid #e1e1e1;
            font-weight: normal;
        }
        .option {
            margin-top: 10px;
            a {              
                color:#333;
                height: 40px;
                width: 45%;
                border: 1px solid #e1e1e1;
                line-height: 40px;
                border-radius: 5px;
            }
            .ok {
                background-color: @mainColor;
                color:#fff;
            }
        }
       
    }
} 